<#import "/spring.ftl" as sp />
<#import "../bingo.ftl" as bingo />
<#assign base=request.contextPath />
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0">
    <meta name="keywords" content=${(post.keyword)!"kaibb"}>
    <base id="base" href="${base}/">
    <!-- Bootstrap -->
    <link href="${base}/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="${base}/plugin/editor/css/editormd.preview.css"/>
    <link rel="stylesheet" href="${base}/css/bingo.css"/>
    <link rel="stylesheet" href="${base}/css/about.css"/>
    <title>${(post.title)!"Kaibb的博客"}</title>
</head>
<body>
<header role="banner">
    <nav class="navbar-default">
        <div class="container">
            <div class="col-md-12 row">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" type="button" data-toggle="collapse"
                            data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand menu" href="/">Bingo</a>
                </div>
                <nav class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="<#if myActive?? && myActive==1 >active</#if>">
                            <a href=""${base}">时间线</a>
                        </li>
                        <li class="<#if myActive?? && myActive==2 >active</#if>">
                            <a href="${base}/blog/hot">热门</a>
                        </li>
                        <li class="<#if myActive?? && myActive==3 >active</#if>">
                            <a href="${base}/page/about">关于我</a>
                        </li>
                        <li class="<#if myActive?? && myActive==4 >active</#if>">
                            <a href="${base}/page/comment">留言</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
</header>